using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace Tools
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
    public class CommandAttribute : Attribute
    {
        private bool dbRequired;

        public bool DbRequired
        {
            get
            {
                return dbRequired;
            }
            set
            {
                dbRequired = value;
            }
        }

        public CommandAttribute(bool required) 
        {
            dbRequired = required;
        }
    }
}
